//
//  GLImageSurface.m
//  LMPhotoVideoSDK
//
//  Created by Aimar on 16/7/7.
//  Copyright © 2016年 魁钺会. All rights reserved.
//

#import "GLImageSurface.h"

@interface GLImageSurface () {
    GLfloat        _texcoods[8];
}

@end

@implementation GLImageSurface

- (id)initWithSize:(CGSize)size {
    self = [super initWithSize:size];
    if (self) {
        _texcoods[0] = 0.0;
        _texcoods[1] = 0.0;
        _texcoods[2] = 0.0;
        _texcoods[3] = 1.0;
        _texcoods[4] = 1.0;
        _texcoods[5] = 1.0;
        _texcoods[6] = 1.0;
        _texcoods[7] = 0.0;
    }
    return self;
}

- (GLfloat*)getTexcoords {
    return &_texcoods[0];
}

@end
